/*
 * @Author: ZephyrGao
 * @Date: 2024-02-08 15:23:28
 * @Description: store 初始化
 * Copyright (c) 2024 by ZephyrGao, All Rights Reserved. 
 */
import { App } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()

export const initStore = (app: App<Element>)=> {
    app.use(pinia)
    // 使用默认配置注册插件
    pinia.use(piniaPluginPersistedstate)  
}
